import request from "@/utils/request";
export const loginApi = (data) => {
    return request({
      url: '/user-service/user/login',
      method: 'post',
      data 
    })
  }


// 验证码api
export const loginCodeApi = (random) =>{
    return request({
        url:`/user-service/user/imageCode/${random}`,
        // 将已转为blob类型的数据转回Json对象，然后进行判断
        responseType:'blob'
    })
}